import { useCookies } from "@vueuse/integrations/useCookies";

const TokenKey = "admin-token";

const cookie = useCookies();

const setToken = (token) => {
  cookie.set(TokenKey , token);
};

const getToken = () => {
  const token = cookie.get(TokenKey );
  return token
};

const removeToken = () => {
  cookie.remove(TokenKey );
};

export { setToken, getToken, removeToken };
